package com.clouds.wms.util;

import java.util.Locale;
import java.util.ResourceBundle;

public class Messages {

	private static ResourceBundle bundle;

	static {
        try {
            bundle = ResourceBundle.getBundle("messages", new Locale("zh", "CN"));
        } catch (Exception e) {
        	
        }
    }

    public static String getString(String key) {
        try {
            String result = bundle.getString(key);

            return result;
        } catch (java.util.MissingResourceException mre) {
            return "";
        }
    }

    public static String getString(ResourceBundle bundle, String key) {
        try {
            String result = bundle.getString(key);

            return result;
        } catch (java.util.MissingResourceException mre) {
            return "";
        }
    }
    
    public static void main(String[] args) {
    	System.out.println(Messages.getString("forget_password"));
    }
}
